<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>PSA CAR</title>

        <link type="text/css" rel="stylesheet" href="<?php echo base_url()?>system/public/css/styles.css" />

        <!-- JQuery -->   
<?php 
    if ($this->uri->segment(1) != 'news') { 
?>
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/jquery.js"></script>	
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/ui/jquery-ui.js"></script>        
<?php     
    }
    else { 
?>
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/jquery1.9.0.js"></script>		
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/ui/jquery-ui1.9.0.js"></script>        
<?php     
    } 
?>
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/ui/jquery.ui.datepicker.js" charset="utf-8"></script>
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/jquery.ui/ui/jquery.ui.timepicker.min.js"></script>
  
        <link type="text/css" rel="stylesheet" href="<?php echo base_url()?>system/public/js/jquery.ui/themes/base/jquery-ui.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>system/public/js/jquery.ui/themes/base/jquery-ui.timepicker.css" />        
        <!-- End JQuery -->
        
        <!-- Colorbox -->
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/colorbox/jquery.colorbox.js"></script>
        <link rel="stylesheet" href="<?php echo base_url()?>system/public/js/colorbox/colorbox.css" />        
        <!-- End Colorbox -->

        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/vote.js" ></script>
        <script type="text/javascript" src="<?php echo base_url()?>system/public/js/validation.js"></script> 

        <script>
            var base_url = '<?php echo base_url(); ?>';

            //Calendar     
            $(function() {
                $('.time').timepicker();
            });
		            
            $(".date").live('click', function() 
            {
                $(this).datepicker({
                    changeMonth: true,
                    changeYear: true,
                    dateFormat: "mm/dd/yy"
                }).focus();        
            });            
        </script>
        
        <script type="text/javascript">
            (function($){
                $(document).ready(function() {
                    $("*[id^='make']").change(function() {  
                        $("*[id^='make']").val($(this).val());
                        $("*[id^='model']").load("<?php echo base_url(); ?>index.php/model/make/"+ $("#make").val());
                    });
                });
            })(jQuery);
        </script>        
    </head>
    <body>
        <div id="container">
<?php 
        if(isset($message))
        {
            if(strlen($message) != 0)
            {
?>
            <div id="error_message">        
<?php
                echo $message;
?>
            </div>            
<?php
            }
        }
?>
            <div id="header">
                <!-- authentication -->
                <div style="float: right; height: 40px;">
<?php 
                    $this->load->view('/templates/authentication/authentication_header'); 
?>
                </div>
                <!-- banner and logo -->
                <div class="banner-logo">
                    <div class="logo">
<?php
                        $image_logo = array(
                            'src' => 'system/public/img/logo.png',
                            'alt' => 'logo',
                            'title' => 'logo',
                            );
                        echo img($image_logo);
?>
                    </div>
                    <div class="banner">
<?php
                        $image_banner = array(
                            'src' => 'system/public/img/banner.jpg',
                            'alt' => 'banner',
                            'title' => 'banner',
                            );
                        echo img($image_banner);
?>
                    </div>
                </div>
                <!-- navigator -->
                <ul class="menu">
<?php 
                    $this->load->view('/templates/menu'); 
?>
                </ul>
            </div>